package com.tanhua.user.service;

import com.tanhua.dubbo.server.pojo.Video;
import com.tanhua.user.mapper.UserInfoMapper;
import com.tanhua.user.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VedioService {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Autowired
    private UserInfoMapper userInfoMapper;

    /**
     * 先用用户id，查询发布了哪些视屏（分页）
     *
     *
     * @param pagesize
     * @param page
     * @param sortProp
     * @param sortOrder
     * @param uid
     * @return
     */
    public PageResult vedioList(Integer pagesize, Integer page, String sortProp, String sortOrder, Integer uid) {

//        Query query = ;
//        List<Video> videos = mongoTemplate.find(query, Video.class);


        //fengzhuang


        return null;
    }
}
